home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / filesy~1 / mfs609s.zoo / fsck / fsck.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-11-25  |  1.1 KB  |  40 lines

  1. #define NSIZE    10    /* Size of big inode cache in blocks */
  2.  
  3.  
  4. /* Inode status structure */
  5.  
  6. typedef struct
  7. {
  8.     unsigned short flag;
  9.             /* Flags or'ed together */
  10. #define I_FREE    0x01    /* Inode free */
  11. #define I_DIR    0x02    /* Is a directory */
  12. #define I_FDD    0x04    /* Fix '..' inode silently */
  13. #define I_D    0x08    /* '.' present */
  14. #define I_DD    0x10    /* '..' present */
  15. #define I_FOUND 0x20    /* Has a parent */
  16. #define I_LINK    0x40    /* Dir has a dir hard link in it */
  17. #define I_FIXDD    0x80    /* Prompt for fixing '..' */
  18. #define I_EMP    0x100    /* Dir contains free slots */
  19.     long     links;    /* Number of links to this inode */
  20.     unsigned short parent;  /* Inode of parent (from '..')*/
  21. } inode_stat;
  22.  
  23. /* Structure for multiply allocated blocks */
  24.  
  25. typedef struct zlst
  26. {
  27.     zone_nr zone;            /* zones */
  28.     unsigned inum;            /* inode zone found on */
  29.         unsigned flag; /* Status flag */
  30. #define FOUND   0x1
  31. #define REMOVE  0x2
  32. #define IGNORE  0x4
  33.     long    mod;            /* Modified time of zone */
  34.     struct zlst *next;        /* Pointer to next entry */
  35. } zlist;
  36.  
  37. static zlist *fzlist,*lzlist;        /* Pointer to first and last entry */
  38.  
  39.  
  40.